Method, apparatus, device and system for capturing trace of NVME hard disc

ABSTRACT

A system for capturing a trace of an NVME hard disc can include a BMC, a BIOS, a protocol analysis instrument, and a fixture plate comprising a processor and a dial switch. The BIOS is configured to acquire register error information of the PCIe link when an error occurs to a PCIe link where the NVME hard disc is located, and send the register error information to the BMC, and the BMC is configured to send the received information to the fixture plate, and the fixture plate is configured to trigger the protocol analysis instrument to capture a PCIe trace of the NVME hard disc when a current error type corresponding to the dial switch is consistent with the error type of the register error information parsed by a processor of the fixture plate.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a national phase application of InternationalApplication No. PCT/CN2019/093360, filed on Jun. 27, 2019 and entitled“METHOD, APPARATUS, DEVICE AND SYSTEM FOR CAPTURING TRACE OF NVME HARDDISC.” This international application claims priority to Chinese patentApplication No. 201811295906.5, filed on Nov. 1, 2018 and entitled“METHOD, APPARATUS, DEVICE AND SYSTEM FOR CAPTURING TRACE OF NVME HARDDISC.” Both of these applications are hereby incorporated by referencein their entirety.

TECHNICAL FIELD

The embodiments of the disclosure relate to the technical field ofserver application, and in particular, to a method, apparatus, deviceand system for capturing a trace of an NVME hard disc and acomputer-readable storage medium.

BACKGROUND OF THE INVENTION

The NVME (Non-Volatile Memory Express) hard disc is a type of hard discwith superior performance in the current server field. Its interface isbased on PCIe (peripheral component interconnect express) Protocol andthis type of hard disc has the characteristics of high interface rateand fast IO throughput. Due to the high performance of NVME hard disc,its requirements for server system compatibility in turn are relativelyhigh.

Common NVME hard disc failures in the server system compriseuncorrectable fatal error, correctable non-fatal error and correctableerror, etc. The symptoms are usually disc drop, downtime, speedreduction, etc. When testing the compatibility of NVME hard disc in theserver system, it is often necessary to carry out long-term testing anddebugging of various models to find out the reasons for theincompatibility between the NVME hard disc and the server system toensure the availability of the server system.

When debugging the NVME hard disc, the related technology uses thetrigger (trigger condition) function that comes with the PCIe protocolanalysis instrument to capture the actual operating data of theinterface protocol of the NVME hard disc (that is, capture the trace ofthe NVME hard disc) to analyze various incompatibility failures. Forspecific fault types, BIOS (Basic Input Output System) can be used tomonitor PCIe error, parse specific faults, and then activate theexternal trigger of the protocol analysis instrument by using the GPIO(General Purpose Input Output) on the PCH (Platform Controller Hub) in atargeted manner. This method requires to customize the BIOS fordifferent types of faults.

The types of the triggers provided by the protocol analysis instrumentmanufacturer is limited, and can only be triggered for several specifictypes of error, which cannot be well adapted to the complex errors thatoccur in the complex system of the server. Due to the fast transfer rateof the PCIe interface and the limited buffer capacity of the protocolanalysis instrument itself, if BIOS cannot trigger for the specificerror type effectively, it is often impossible to capture an effectivePCIe trace for analysis. What's more, some faults are difficult toreproduce. Once these faults are missed, it will take a long time towait for them, which will waste a lot of efforts and resources.

SUMMARY OF THE INVENTION

The embodiments of the present disclosure provide a method, apparatus,device and system for capturing a trace of an NVME hard disc, and acomputer-readable storage medium, which can capture the failure error ofthe NVME hard disc corresponding to the PCIe trace precisely andefficiently without customizing the corresponding BIOS or trigger fordifferent failure error types.

To solve the above technical problems, the embodiments of the presentdisclosure provide the following technical solutions.

According to an aspect of the present disclosure, a system for capturinga trace of an NVME hard disc is provided. The system comprises a BMC, aBIOS, a fixture plate and a protocol analysis instrument, wherein theBMC is connected with the fixture plate and the BIOS, respectively, andthe fixture plate is connected with the protocol analysis instrument;wherein the BIOS is configured to acquire register error information ofthe PCIe link in which the NVME hard disc is located, and send theregister error information to the BMC when an error occurs to the PCIelink; and the BMC is configured to send the received register errorinformation to the fixture plate; and wherein the fixture platecomprises a processor and a dial switch, and is used to trigger theprotocol analysis instrument to capture a PCIe trace of the NVME harddisc when the current error type corresponding to the dial switch isconsistent with the error type of the register error information parsedby the processor.

In an embodiment, the GPIO pin of the fixture plate is connected with atrigger connector of the protocol analysis instrument. And triggeringthe protocol analysis instrument to capture a PCIe trace of the NVMEhard disc comprises:

setting the GPIO pin of the fixture plate so as to trigger the protocolanalysis instrument to capture the PCIe trace of the NVME hard disc.

In an embodiment, an RS-232 serial port of the BMC on a server mainboardis connected to an input of the fixture plate through a cable, and thefixture plate is connected with the protocol analysis instrument througha coaxial cable.

In an embodiment, the BIOS is configured to send the register errorinformation to the BMC via a KCS link.

According to another aspect of the present disclosure, a method forcapturing a trace of an NVME hard disc is provided, which is applied toa fixture plate and comprises the following steps:

-   -   acquiring register error information, wherein the register error        information is register information collected by a BIOS when an        error occurs to a PCIe link in which the NVME hard disc is        located;    -   parsing address information carried by the register error        information to obtain a corresponding error type;    -   determining whether the error type is consistent with a current        error type corresponding to a dial switch;    -   if the error type is consistent with the current error type        corresponding to the dial switch, triggering a protocol analysis        instrument to capture the PCIe trace of the NVME hard disc;    -   wherein the fixture plate is connected with the protocol        analysis instrument, and the BIOS sends the register error        information to the fixture plate through a BMC, and the address        information of the register error information has a        corresponding relationship with the error type.

In an embodiment, the GPIO pin of the fixture plate is connected with atrigger connector of the protocol analysis instrument. And triggeringthe protocol analysis instrument to capture a PCIe trace of the NVMEhard disc comprises:

sending instructions which set the GPIO pin of the fixture plate so asto trigger the protocol analysis instrument to capture the PCIe trace ofthe NVME hard disc.

In an embodiment, the BIOS sends the register error information to theBMC via a KCS link, and the BMC sends the received register errorinformation to the fixture plate through an RS-232 serial port.

The embodiments of the disclosure also provide an apparatus forcapturing a trace of an NVME hard disc, which is applied to a fixtureplate and comprises:

-   -   an information acquiring module for acquiring register error        information, wherein the register error information is register        information collected by a BIOS when an error occurs to a PCIe        link in which the NVME hard disc is located; the register error        information is sent to the fixture plate by the BIOS via a BMC;        and the fixture plate is connected with a protocol analysis        instrument;    -   an error type parsing module for parsing address information        carried by the register error information to obtain a        corresponding error type; wherein the address information of the        register error information has a corresponding relationship with        the error type; an error type matching result judging module for        judging whether the error type is consistent with the current        error type corresponding to the dial switch;    -   a triggering module for triggering a protocol analysis        instrument to capture a PCIe trace of the NVME hard disc when        the error type is consistent with the current error type        corresponding to the dial switch.

The embodiments of the disclosure further provide a device for capturinga trace of an NVME hard disc. The device comprises a processor, whereinthe processor is used to perform the steps of capturing a trace of anNVME hard disc according to any one of the preceding methods when theprocessor executes computer programs stored in a memory.

The embodiments of the disclosure further provide a computer-readablestorage medium. The computer-readable storage medium is provided withprograms for capturing a trace of an NVME hard disc, wherein theprograms when executed by a processor causes the processor to performthe steps for capturing a trace of an NVME hard disc according to anyone of the preceding methods.

The embodiments of the disclosure further provide a system for capturinga trace of an NVME hard disc. The system comprises a BMC, a BIOS, aprotocol analysis instrument and a fixture plate comprising a processorand a dial switch. When an error occurs to a PCIe link where the NVMEhard disc is located, the BIOS acquires register error information ofthe PCIe link, and sends same to the BMC, and then the BMC sends thereceived information to the fixture plate, and the fixture platetriggers the protocol analysis instrument to capture a PCIe trace of theNVME hard disc when the current error type corresponding to the dialswitch is consistent with the error type of the register errorinformation parsed by the processor.

The embodiments provided by the disclosure have the advantages that: thePCIe trace of an NVME hard disc can be captured precisely andefficiently since the operation state information of the PCIe link wherethe NVME hard disc is located is monitored by using the BIOS, and theregister error information is captured in time when a fault occurs, andthe processor of the fixture plate is used for parsing the error type ofthe register information, and the capture of the trace of an NVME istriggered on the basis of the comparison between the error type of theregister information and the error type selected by the dial switch.Thus, the problem that the corresponding BIOS or trigger needs to becustomized for different error types is solved, and the user can freelyselect the error types needed to be captured by using the dial switch tocapture the corresponding PCIe trace for analysis. The method isbeneficial to efficiently and precisely finding out the reason for theincompatibility between the NVME hard disc and the server system.

In addition, the embodiments of the disclosure also provide acorresponding apparatus, device and a computer-readable storage mediumfor the method for capturing a trace of an NVME hard disc, so that themethod becomes more practical. The apparatus, device and acomputer-readable storage medium have the corresponding advantages tothose of the method.

It is to be understood that the foregoing general description and thefollowing detailed description are exemplary only and are not intendedto limit the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to explain the embodiments of the present invention or thetechnical solutions of the prior art more clearly, the following willbriefly describe the figures that need to be used in the description ofthe embodiments or the prior art. Obviously, the following descriptionabout figures only refers some of the embodiments of the presentinvention, and for those skilled in the art, other embodiments may beobtained based on these drawings without creative efforts.

FIG. 1 is a schematic diagram of the architecture of a system forcapturing a trace of an NVME hard disc according to an exemplaryembodiment of the present disclosure;

FIG. 2 is a flowchart of a method for capturing a trace of an NVME harddisc according to an embodiment of the present disclosure; and

FIG. 3 is a schematic diagram of the structure of an apparatus forcapturing a trace of an NVME hard disc according to an embodiment of thepresent disclosure.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

In order to enable those skilled in the art to better understand thesolution of the disclosure, the disclosure will be further described indetail below with reference to the figures and specific embodiments.Obviously, the described embodiments are only a part of the embodimentsof the invention, rather than all the embodiments. Based on theembodiments of the disclosure, other embodiments which can be obtainedby those skilled in the art without creative efforts shall also fallwithin the protection scope of the invention.

The terms “first”, “second”, “third”, “fourth”, etc. in the description,claims and the figures of this invention are used to distinguishdifferent objects, not to describe a specific sequence. In addition, theterms “comprising” and “including” and any variations of them areintended to cover non-exclusive inclusion. For example, a process,method, system, product, or device that comprises a series of steps orunits is not limited to the listed steps or units, but may compriseunlisted steps or units.

After introducing the technical solutions of the embodiments of theinvention, various non-limiting embodiments of the invention aredescribed in detail below.

Initially referring to FIG. 1, a schematic diagram of the architectureof a system for capturing a trace of an NVME hard disc according to anexemplary embodiment of the present disclosure is provided. Thisembodiment comprises:

the system for capturing a trace of an NVME hard disc comprise aBaseboard Management Controller (BMC) 1, a BIOS 2, a fixture plate 3 anda protocol analysis instrument 4.

The BMC 1 is connected with the fixture plate 3 and the BIOS 2,respectively. The fixture plate 3 is connected with the protocolanalysis instrument 4, and the BIOS 2 is connected with the NVME harddisc.

The BMC 1 and the BIOS 2 are both located on a server mainboard.Optionally, the BIOS 2 can communicate with the BMC 1 through a KCSlink.

Optionally, the RS-232 serial port of the BMC 1 on the server mainboardis connected to an input of the fixture plate 3 through a cable. And thefixture plate 3 has a GPIO pin as an output. The fixture plate 3 isconnected with a trigger connector of the protocol analysis instrumentthrough a coaxial cable.

The BIOS 2 monitors a PCIe link connected with the NVME hard disc inreal time, acquires/collect register error information of the PCIe linkwhen an error occurs in the PCIe link in which the NVME hard disc islocated (i.e., a PCIe error is reported in the related link), and sendsthe register error information to the BMC 1 through the KSC link. Theimplementation process that the BIOS 2 detects the error in the PCIelink and acquires the register error information of the PCIe link canrefer to the related art. No further details will be given herein.

After the BMC 1 receives the information sent by the BIOS 2, thereceived register error information can be sent to the fixture plate 3through a serial port (RS-232).

The fixture plate 3 comprises a processor and a dial switch, whereineach position of the dial switch corresponds to a type of the registererror, such as unsupported request, bad TLP, bad DLLP, malformed TLP,and the like. The user can select one or more register error types whichneed to be triggered at the same time through the dial switch. That is,the user can select a test option which is incompatible between the NVMEhard disc and the server system through the dial switch.

The processor of the fixture plate 3 can parse the received registererror information to obtain the corresponding error type. The processorcan parse the address information carried in the register errorinformation to obtain the error type, and the address informationcarried in the register error information can be a self-defined address,and the address information and the error type have a uniquecorrespondence. It should be noted that the address information here isdifferent from the address in the configuration space. The addressinformation carried by the register error information is a self-definedaddress. For example, when the carried address is 11122, the type of theregister error information corresponding to the address is A, and whenthe carried address is 11221, the type of the register error informationcorresponding to the address is B.

When the current corresponding error type of the dial switch isconsistent with the error type of register error information parsed bythe processor, the processor triggers protocol analysis instrument 4 tocapture the PCIe trace of the NVME hard disc. For example, the processorcan trigger the capture of the trace by controlling the set of theoutput terminal pin.

For example, when the GPIO (General Purpose Input/Output) pin of thefixture plate 3 is connected with the trigger connector of the protocolanalysis instrument 4, the capture of the PCIe trace of the NVME harddisc by the protocol analysis instrument 4 can be triggered by settingthe GPIO pin of the fixture plate 3.

In this embodiment of the disclosure, the PCIe trace of an NVME harddisc can be captured precisely and efficiently since the operation stateinformation of the PCIe link in which the NVME hard disc is located ismonitored by using the BIOS, and the register error information iscaptured in time when a fault occurs, and the processor of the fixtureplate is used for parsing the type of the register error information,and the capture of the trace of an NVME is triggered on the basis of thecomparison between the type of the register error information and theerror type selected by the dial switch. Thus, the problem that thecorresponding BIOS or trigger needs to be customized for different errortypes is solved, and the user can freely select the error types neededto be captured by using the dial switch to capture the correspondingPCIe trace for analysis. The method is beneficial to efficiently andaccurately finding the reason for the incompatibility between the NVMEhard disc and the server system.

With reference to FIG. 2, FIG. 2 shows a flowchart of a method forcapturing a trace of an NVME hard disc according to an embodiment of thepresent disclosure. For example, the method can be used in the fixtureplate of the above-described embodiment. The method in this embodimentcomprise the following steps:

-   -   S201: acquiring register error information, wherein the register        error information is register information collected by a BIOS        when an error occurs in a PCIe link in which the NVME hard disc        is located.    -   S202: parsing the address information carried by the register        error information to obtain a corresponding error type. The        address information of the register error information has a        corresponding relationship with the error type.    -   S203: determining whether the error type is consistent with an        error type currently present in the dial switch. If it is yes,        proceed to step S204.    -   S204: triggering the protocol analysis instrument to capture a        PCIe trace of the NVME hard disc.

The fixture plate is connected with the protocol analysis instrument.The BIOS sends the register error information to the fixture platethrough a BMC. The BIOS sends the register error information to BCM viaa KCS link. And the BMC sends the received register error information tothe fixture plate through a RS-232 serial port.

Alternatively, the GPIO pin of the fixture plate is connected with thetrigger connector of the protocol analysis instrument. And the step ofS204 can be embodied as instructions to send the set GPIO pin so as totrigger the protocol analysis instrument to capture the PCIe trace ofthe NVME hard disc.

As can be seen from the above, the embodiments of the present disclosuredoes not need to customize the corresponding BIOS or trigger fordifferent error types, and the PCIe trace corresponding to the NVME harddisc error can be precisely and effectively captured.

The embodiments of the present disclosure also provide an apparatus forcapturing a trace of an NVME hard disc, which makes the method morepractical. The apparatus for capturing a trace of an NVME hard discprovided by the embodiments of the present disclosure is described. Theapparatus for capturing a trace of an NVME hard disc and the method forcapturing a trace of an NVME hard disc described above can be referencedto each other.

With reference to FIG. 3, FIG. 3 shows a schematic diagram of thestructure of an apparatus for capturing a trace of an NVME hard discaccording to an embodiment of the present disclosure. The apparatus maycomprise:

-   -   an information acquiring module 301 configured to acquire        register error information, wherein the register error        information is register information collected by a BIOS when an        error occurs in a PCIe link in which the NVME hard disc is        located or to which the NVME hard disc is connected; the        register error information is sent to the fixture plate by the        BIOS via a BMC; and the fixture plate is connected with a        protocol analysis instrument;    -   an error type parsing module 302 configured to parse the address        information carried by the register error information to obtain        a corresponding error type; wherein the address information of        the register error information has a corresponding relationship        with the error type;    -   an error type matching result judging module 303 for judging        whether the error type is consistent with the current error type        corresponding to the dial switch;    -   a triggering module 304 configured to trigger a protocol        analysis instrument to capture a PCIe trace of the NVME hard        disc when the error type is consistent with the current error        type corresponding to the dial switch.

Alternatively, in some embodiments of the disclosure, the trigger module304 may also be configured to send instructions to set GPIO pin totrigger the protocol analysis instrument to capture a PCIe trace of theNVME hard disc when the GPIO pin of the fixture plate is connected withthe trigger connector of the protocol analysis instrument.

The functions of the modules of the apparatus for capturing a trace ofan NVME hard disc according to the embodiment of the present disclosurecan be implemented according to the method in the above embodiments. Andthe specific implementation process can be described with reference tothe related description of the method of the above embodiments. No moredetails will be further described herein.

As can be seen from the above, the embodiments of the present disclosuredo not need to customize the corresponding BIOS or trigger for differenterror types, and the PCIe trace corresponding to the NVME hard discerror can be precisely and effectively captured.

The embodiments of the disclosure further provide a device for capturinga trace of an NVME hard disc, the device comprises:

-   -   a memory for storing computer programs;    -   a processor for executing computer programs to perform the steps        of capturing a trace of an NVME hard disc according to any one        embodiment of the present disclosure.

The functions of the modules of the device for capturing a trace of anNVME hard disc according to the embodiment of the present disclosure canbe implemented according to the method in the above embodiments. And thespecific implementation process can be described with reference to therelated description of the method of the above embodiments. No moredetails will be further described herein.

As can be seen from the above, the embodiments of the present disclosuredo not need to customize the corresponding BIOS or trigger for differenterror types, and the PCIe trace corresponding to the NVME hard discerror can be accurately and effectively captured.

The embodiments of the present disclosure also provide acomputer-readable storage medium storing programs for capturing a traceof an NVME hard disc, wherein the programs when executed by a processorcauses the processor to perform the steps of the method for capturing atrace of an NVME hard disc according to any one of the precedingmethods.

The functions of the modules of the computer-readable storage medium forcapturing a trace of an NVME hard disc according to the embodiment ofthe present disclosure can be implemented according to the method in theabove embodiments. And the specific implementation process can bedescribed with reference to the related description of the method of theabove embodiments. No more details will be further described herein.

As can be seen from the above, the embodiments of the present disclosuredo not need to customize the corresponding BIOS or trigger for differenterror types, and the PCIe trace corresponding to the NVME hard discerror can be precisely and effectively captured.

Various embodiments of the present invention are describedprogressively, each embodiment focuses on the differences from otherembodiments, and the same and similar parts of these embodiments mayrefer to each other. For device disclosed in the embodiment, because itcorresponds to the method disclosed in the embodiment, it is describedsimply, and the related part may refer to description of the method.

Those skilled in the art may be aware of that modules and steps providedin each embodiment disclosed in this specification can be implemented byelectronic hardware, computer software or combination thereof. Todescribe the interchangeability between hardware and software clearly,components and steps of each embodiment are already described in theforegoing description according to the function commonalities. Whetherthese functions are executed by hardware or software depends on specificapplications and design constraints of the technical solutions. Thoseskilled in the art can implement the described functions of eachspecific application by using different methods. However, suchimplementation should not be considered as going beyond the scope of thepresent invention.

The method or algorithm provided in the embodiments of the presentinvention may directly use a software module executed by hardware or aprocessor or combination thereof. The software module may reside in arandom access memory (RAM), a memory, a read-only memory (ROM), anelectrically programmable ROM, an electrically erasable programmableROM, a register, a hard disk, a mobile disk, a CD-ROM, or any other formof storage medium well known in the art.

The method, apparatus, device, system and computer-readable storagemedium for capturing a trace of an NVME hard disc provided by theinvention are described in detail. Specific examples are described toexplain the principle and implementation mode of the invention, and thedescription of the above examples is only used to help understand themethod and core idea of the invention. It should be noted that for thoseskilled in the art various improvements and modifications can be made tothe embodiments without departing from the idea or scope of the presentinvention, which also fall within the protection scope of the claims ofthe invention.

The following series of paragraphs is presented without limitation todescribe additional aspects and features of the disclosure:

A0. A system for capturing a trace of a Non-Volatile Memory Express(NVME) hard disc is provided. The system comprising: a BaseboardManagement Controller (BMC); a Basic Input Output System (BIOS); afixture plate; and a protocol analysis instrument, wherein the BMC isconnected with the fixture plate and the BIOS, respectively, and thefixture plate is connected with the protocol analysis instrument;wherein the BIOS is configured to acquire register error information ofa peripheral component interconnect express (PCIe) link in which theNVME hard disc is located, and send the register error information tothe BMC when an error occurs in the PCIe link; and the BMC is configuredto send the register error information to the fixture plate; and whereinthe fixture plate comprises a processor and a dial switch, and isconfigured to trigger the protocol analysis instrument to capture a PCIetrace of the NVME hard disc when a current error type corresponding tothe dial switch is consistent with an error type of the register errorinformation parsed by the processor.

A1. The system according to paragraph A0, wherein the fixture platefurther comprises a Basic Input Output System (GPIO) pin, and the BPIOpin is connected with a trigger connector of the protocol analysisinstrument, and the GPIO pin of the fixture plate is set to trigger theprotocol analysis instrument to capture the PCIe trace of the NVME harddisc in response to that the current error type corresponding to thedial switch is consistent with the error type of the register errorinformation parsed by the processor.

A2. The system according to paragraph A1, wherein a RS-232 serial portof the BMC on a server mainboard is connected to an input of the fixtureplate through a cable, and the fixture plate is connected with theprotocol analysis instrument through a coaxial cable.

A3. The system according to paragraph A2, wherein the BIOS is configuredto send the register error information to the BMC via a KCS link.

A4. The system according to paragraph A0, wherein the current error typecorresponding to the dial switch is an error type selected by a user.

A5. The system according to paragraph A0, wherein the current error typecorresponding to the dial switch includes one or more error typesselected by a user.

A5. The system according to paragraph A0, wherein the processor isfurther configured to receive the register error information from theBMC and parse address information carried by the register errorinformation to determine whether the error type is consistent with thecurrent error type corresponding to the dial switch, wherein the addressinformation is a self-defined address and uniquely corresponds to theerror type.

B0. A method for capturing a trace of a Non-Volatile Memory Express(NVME) hard disc, wherein the method is applied to a fixture plateincluding a processor and a dial switch. The method comprising acquiringregister error information, wherein the register error information isregister information collected by a Basic Input Output System (BIOS)when an error occurs in a peripheral component interconnect express(PCIe) link in which the NVME hard disc is located; parsing addressinformation carried by the register error information to obtain acorresponding error type; determining whether the error type isconsistent with a current error type corresponding to a dial switch;triggering a protocol analysis instrument to capture the PCIe trace ofthe NVME hard disc if the error type is consistent with the currenterror type corresponding to the dial switch; and wherein the fixtureplate is connected with the protocol analysis instrument, and the BIOSsends the register error information to the fixture plate through aBaseboard Management Controller (BMC), and the address information ofthe register error information has a corresponding relationship with theerror type.

B1. The method according to paragraph B0, wherein a Basic Input OutputSystem (GPIO) pin of the fixture plate is connected with a triggerconnector of the protocol analysis instrument, and triggering theprotocol analysis instrument to capture the PCIe trace of the NVME harddisc comprises: sending instructions to set the GPIO pin of the fixtureplate so as to trigger the protocol analysis instrument to capture thePCIe trace of the NVME hard disc.

B2. The method according to paragraph B1, wherein the BIOS sends theregister error information to the BMC via a KCS link, and the BMC sendsreceived register error information to the fixture plate through anRS-232 serial port.

B3. The method according to paragraph B0, wherein the current error typecorresponding to the dial switch is an error type selected by a user.

B4. The method according to paragraph B0, wherein the addressinformation is a self-defined address.

C0. An apparatus for capturing a trace of an NVME hard disc, wherein theapparatus is applied to a fixture plate and comprises: an informationacquiring module configured to acquire register error information,wherein the register error information is register information collectedby a BIOS when an error occurs in a PCIe link in which the NVME harddisc is located; the register error information is sent to the fixtureplate by the BIOS via a BMC; and the fixture plate is connected with aprotocol analysis instrument; an error type parsing module for parsingaddress information carried by the register error information to obtaina corresponding error type; wherein the address information of theregister error information has a corresponding relationship with theerror type; an error type matching result judging module for judgingwhether the error type is consistent with the current error typecorresponding to the dial switch; and a triggering module for triggeringa protocol analysis instrument to capture a PCIe trace of the NVME harddisc when the error type is consistent with the current error typecorresponding to the dial switch.

D0. A device for capturing a trace of an NVME hard disc comprising aprocessor, wherein the processor is used to perform the following stepswhen the processor executes computer programs stored in a memory:acquiring register error information, wherein the register errorinformation is register information collected by a Basic Input OutputSystem (BIOS) when an error occurs in a PCIe link in which the NVME harddisc is located; parsing address information carried by the registererror information to obtain an error type; determining whether the errortype is consistent with a current error type corresponding to a dialswitch of a fixture plate; triggering a protocol analysis instrument tocapture a PCIe trace of the NVME hard disc if the error type isconsistent with the current error type corresponding to the dial switchin the fixture plate.

D1. The device according to paragraph D0, wherein the current error typecorresponding to the dial switch is an error type selected by a user.

D2. The device according to paragraph D0, wherein the addressinformation is a self-defined address.

E0. A computer-readable storage medium comprising programs for capturinga trace of an NVME hard disc, wherein the programs when executed by aprocessor causes the processor to perform the steps of the method forcapturing a trace of an NVME hard disc according to any one ofParagraphs B0 to B4.

The invention claimed is:
 1. A system for capturing a trace of aNon-Volatile Memory Express (NVME) hard disc, the system comprising: aBaseboard Management Controller (BMC); a Basic Input Output System(BIOS); a fixture plate; and a protocol analysis instrument, wherein theBMC is connected with the fixture plate and the BIOS, respectively, andthe fixture plate is connected with the protocol analysis instrument;wherein the BIOS is configured to acquire register error information ofa peripheral component interconnect express (PCIe) link in which theNVME hard disc is located, and send the register error information tothe BMC when an error occurs in the PCIe link; and the BMC is configuredto send the register error information to the fixture plate; and whereinthe fixture plate comprises a processor and a dial switch, and isconfigured to trigger the protocol analysis instrument to capture a PCIetrace of the NVME hard disc when a current error type corresponding tothe dial switch is consistent with an error type of the register errorinformation parsed by the processor.
 2. The system of claim 1, wherein aBasic Input Output System (GPIO) pin of the fixture plate is connectedwith a trigger connector of the protocol analysis instrument, and theGPIO pin of the fixture plate is set to trigger the protocol analysisinstrument to capture the PCIe trace of the NVME hard disc in responseto that the current error type corresponding to the dial switch isconsistent with the error type of the register error information parsedby the processor.
 3. The system of claim 2, wherein a RS-232 serial portof the BMC on a server mainboard is connected to an input of the fixtureplate through a cable, and the fixture plate is connected with theprotocol analysis instrument through a coaxial cable.
 4. The system ofclaim 3, wherein the BIOS is configured to send the register errorinformation to the BMC via a KCS link.
 5. The system of claim 1, whereinthe current error type corresponding to the dial switch is an error typeselected by a user.
 6. The system of claim 1, wherein the current errortype corresponding to the dial switch includes one or more error typesselected by a user.
 7. The system of claim 1, wherein the processor isfurther configured to receive the register error information from theBMC and parse address information carried by the register errorinformation to determine whether the error type is consistent with thecurrent error type corresponding to the dial switch, wherein the addressinformation is a self-defined address and uniquely corresponds to theerror type.
 8. A method for capturing a trace of a Non-Volatile MemoryExpress (NVME) hard disc, wherein the method is applied to a fixtureplate including a processor and a dial switch, the method comprising:acquiring register error information, wherein the register errorinformation is register information collected by a Basic Input OutputSystem (BIOS) when an error occurs in a peripheral componentinterconnect express (PCIe) link in which the NVME hard disc is located;parsing address information carried by the register error information toobtain a corresponding error type; determining whether the error type isconsistent with a current error type corresponding to the dial switch;triggering a protocol analysis instrument to capture the PCIe trace ofthe NVME hard disc if the error type is consistent with the currenterror type corresponding to the dial switch; wherein the fixture plateis connected with the protocol analysis instrument, and the BIOS sendsthe register error information to the fixture plate through a BaseboardManagement Controller (BMC), and the address information of the registererror information has a corresponding relationship with the error type.9. The method of claim 5, wherein a Basic Input Output System (GPIO) pinof the fixture plate is connected with a trigger connector of theprotocol analysis instrument, and triggering the protocol analysisinstrument to capture the PCIe trace of the NVME hard disc comprises:sending instructions to set the GPIO pin of the fixture plate so as totrigger the protocol analysis instrument to capture the PCIe trace ofthe NVME hard disc.
 10. The method of claim 6, wherein the BIOS sendsthe register error information to the BMC via a KCS link, and the BMCsends received register error information to the fixture plate throughan RS-232 serial port.
 11. The method of claim 8, wherein the currenterror type corresponding to the dial switch is an error type selected bya user.
 12. The method of claim 8, wherein the address information is aself-defined address.
 13. A device for capturing a trace of an NVME harddisc comprising a processor, wherein the processor is used to performthe following steps when the processor executes computer programs storedin a memory: acquiring register error information, wherein the registererror information is register information collected by a Basic InputOutput System (BIOS) when an error occurs in a PCIe link in which theNVME hard disc is located; parsing address information carried by theregister error information to obtain an error type; determining whetherthe error type is consistent with a current error type corresponding toa dial switch of a fixture plate; triggering a protocol analysisinstrument to capture a PCIe trace of the NVME hard disc if the errortype is consistent with the current error type corresponding to the dialswitch in the fixture plate.